package com.mycloud.cloud.order.controller;

import com.mycloud.cloud.order.entity.PmsCategory;
import com.mycloud.cloud.order.service.IPmsCategoryService;
import com.mycloud.common.core.controller.BaseController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 商品三级分类Controller
 *
 * @author ruoyi
 * @date 2020-09-09
 */
@RestController
@RequestMapping("/order/category")
public class PmsCategoryController  extends BaseController {
    @Autowired
    private IPmsCategoryService pmsCategoryService;

    /**
     * 查询商品三级分类列表
     */
    @GetMapping("/list")
    public Map<String,Object> list(PmsCategory pmsCategory) {
        Map<String,Object> resp=new HashMap<String,Object>();
        startPage();
        List<PmsCategory> list = pmsCategoryService.selectPmsCategoryList(pmsCategory);
        resp.put("data",list);
        return resp;
    }

}
